//
//  YWCirculationInfo.h
//  maintain
//
//  Created by Kyo on 16/6/22.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>
@class YWHandler;

typedef NS_ENUM(NSUInteger, YWCirculationInfoType) {
    YWCirculationInfoTypePostTrouble = 1, //产生故障单
    YWCirculationInfoTypeCancelTrouble = 2, //取消故障单
    YWCirculationInfoTypeAssignTroubleMission = 3, //分配故障任务
    YWCirculationInfoTypeCancelTroubleMission = 4, //取消故障任务
    YWCirculationInfoTypeReturnTroubleMission = 5, //退回故障任务
    YWCirculationInfoTypeFinishTroubleMission = 6, //完成任务
};

@interface YWCirculationInfo : NSObject
/**流转信息ID*/
@property (nonatomic, assign) NSInteger infoId;
/**报障单ID*/
@property (nonatomic, assign) NSInteger troubleId;
/**流转信息发起人*/
@property (nonatomic, strong) YWHandler *author;
/**流转信息接收人*/
@property (nonatomic, strong) YWHandler *recipient;
/**流转发生时间*/
@property (nonatomic, assign) NSTimeInterval createTime;
/**流转信息*/
@property (nonatomic, copy) NSString *note;
/**流转类型*/
@property (nonatomic, assign) YWCirculationInfoType type;
/**已读未读状态*/
@property (nonatomic, assign) BOOL isRead;

@property (nonatomic, assign) BOOL isLastAssignBill;//最后一个分配单
@end

